<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>辅导视频</title>
  <link rel="stylesheet" href="../assets/vant.css" />
  <script src="../assets/vue-2.6.14.min.js"></script>
  <script src="../assets/vant.min.js"></script>
  <style>
    .van-nav-bar .van-icon {
      color: #333;
    }
    .video-item {
      display: flex;
      align-items: center;
      padding: 8px 12px;
      border-bottom: 1px solid #eaeaea;
    }
    .video-item .video-title {
      flex: 1;
      font-size: 14px;
      font-weight: 400;
      margin: 0 12px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  </style>
</head>

<body>
  <div id="app-guide-videos">
    <van-nav-bar title="辅导视频" left-arrow @click-left="goBack"></van-nav-bar>
    <ul class="video-box">
      <li :key="index" class="video-item" v-for="(item, index) in videoList">
        <van-image radius="5" width="64" height="64" :src="item.cover"></van-image>
        <div class="video-title">{{ item.title }}</div>
      </li>
    </ul>
  </div>
</body>
<script>
  new Vue({
    el: '#app-guide-videos',
    data () {
      return {
        videoList: [
          { cover: 'https://img01.yzcdn.cn/vant/cat.jpeg', title: '《梁祝》小提琴教学第二讲' },
          { cover: 'https://img01.yzcdn.cn/vant/cat.jpeg', title: '很长的描述很长的描述很长的描述很长的描述很长的描述很长的描述很长的描述很长的描述' },
          { cover: 'https://img01.yzcdn.cn/vant/cat.jpeg', title: '指弹肖邦——致爱丽丝solo' },
        ]  
      }
    },
    methods: {
      goBack() {
        window.history.back()
      }
    },
  });
</script>
</html>